extract math from images